package com.example.m2m.pojo;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.beans.Transient;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2023/9/6
 * @Version 1.0
 **/
@Data
public class User implements Serializable {
    private Integer id;
    private String name;
    private String pwd;
    private String address;
    private Integer age;
    @JSONField(format = "yyyy-MM-dd")
    private Date in_time;

    private String ids;

    private List<Role> roles = new ArrayList<>(10);

}
